#include "Object.h"
#include <iostream>

String::String()
	: string("")
{
}

String::String(const char *str)
	: string(str)
{
}

String::String(const var& str)
	: string(str.toString())
{
}

String::String(const string& str)
	: string(str)
{
}

String::String(double n)
{
	ostringstream s; s << n; *this = s.str();
}

String::String(long long n)
{
	ostringstream s; s << n; *this = s.str();
}

String::String(char str)
{
	*this += str;
}
const char* String::toString()
{
	return c_str();
}

var String::length()
{
	return (long long)string::length();
}